package com.example.shopping.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.shopping.pojo.domain.UserBean;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Dream
 * @version 1.0
 * @date 2020/11/9 11:50
 */
public interface UserService extends IService<UserBean> {
    /**
     * 登录检查/获取会员
     * @param xh
     * @return
     */
    HashMap<String,Object> getUser(String xh, String password, HttpServletRequest request);

    /**注册添加用户
     * @param userBean
     */
    String addUser(UserBean userBean);

    /**
     * 修改密码
     * @param password
     * @param xh
     */
    String updatePswd(String password, String xh);
}
